package com.cug.zfanspring.mapper;

import com.cug.zfanspring.bean.Device;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DeviceMapper {
    List<Device> getLatestAlarmDeviceData();
    List<Device> getAlarmDeviceData();
    long getDeviceNormalNumber(String area);
    long getDeviceFaultNumber(String area);
    List<String> getAreaName();
    boolean updateDeviceData(@Param("deviceData")List<Device> deviceData);
   boolean updateLatestDeviceData(@Param("deviceData") List<Device> deviceData);

}
